﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;

namespace backend.Models;

// 一级区域
[Table("FirstClass")]
public partial class FirstClass
{
    [Key]
    [Column("FC_ID")]
    [StringLength(8)]
    [Unicode(false)]
    public string FcId { get; set; } = null!;

    [Column("FC_Name")]
    [StringLength(32)]
    public string FcName { get; set; } = null!;

    [Column("FC_StopUsing")]
    public bool FcStopUsing { get; set; } = false;

    [InverseProperty("Fc")]
    public virtual ICollection<FailureDatum> FailureData { get; set; } = new List<FailureDatum>();

    [InverseProperty("Fc")]
    public virtual ICollection<RepairRequest> RepairRequests { get; set; } = new List<RepairRequest>();

    [InverseProperty("Fc")]
    public virtual ICollection<SecondClass> SecondClasses { get; set; } = new List<SecondClass>();
}
